package com.zb.kl.common;

public enum ResponseCode {
    SUCCESS(0, "successful!", "请求成功！"),
    FAILED(1, "failure!", "请求失败！"),
    LIST(2, "Exception in obtaining data list!", "获取数据列表异常！"),
    GET(3, "Exception in obtaining data info!", "获取数据详情异常！"),
    ADD(4, "Exception in adding data!", "新增数据异常！"),
    DELETE(5, "Exception in deleting data!", "删除数据异常！"),
    UPDATE(6, "Exception in updating data!", "更新数据异常！");

    private final Integer code;
    private final String enMsg;
    private final String zhMsg;

    private ResponseCode(Integer code, String enMsg, String zhMsg) {
        this.code = code;
        this.enMsg = enMsg;
        this.zhMsg = zhMsg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getEnMsg() {
        return this.enMsg;
    }

    public String getZhMsg() {
        return this.zhMsg;
    }
}
